<!--
 * @Description: 
 * @Author: william
 * @Date: 2025-06-10 19:54:35
 * @LastEditors: william
 * @LastEditTime: 2025-06-10 19:57:59
-->
<template>
  <nw-Modal
    class="nw-modal"
    :title="$t('components.deleteOperTip')"
    v-model="visible"
    :confirmText="$t('public.delete')"
    @confirm="modelConfirm"
  >
    <view class="modal-content">{{ $t('components.deleteConfirmTip') }}</view>
  </nw-Modal>
</template>

<script setup>
defineOptions({
  name: 'DeleteConfirm',
  inheritAttrs: false
})

const props = defineProps({
  data: {
    type: Object,
    default: () => {}
  }
})
const visible = defineModel({
  type: Boolean,
  default: false
})
const emit = defineEmits(['confirm'])

onMounted(_ => {})

const modelConfirm = _ => {
  emit('confirm', props.data)
}
</script>

<style lang="scss" scoped>
.modal-content {
  padding-bottom: 20rpx;
  font-size: 28rpx;
  font-weight: 600;
  color: var(--color-333);
}
</style>
